<?php

use Illuminate\Routing\Router;


Route::group([
    'prefix' => 'admin/newProduct',
    'namespace'     => 'Beerus\\Modules\\NewProduct\\Controllers',
    'middleware'    => ['web', 'admin'],
], function (Router $router) {
    $router->get('/index','IndexController@index');
    $router->get('index/create','IndexController@create');
    $router->get('index/{id}/edit','IndexController@edit');
    $router->post('save','IndexController@save');
    $router->post('audit','IndexController@audit');
    $router->post('sort','IndexController@sort');
    $router->get('sortlists','IndexController@sortLists');
    $router->get('/jdCard/{id}/add', 'IndexController@jdCardAdd');//填写京东兑换码
    $router->post('/jdCard/save', 'IndexController@jdCardSave');//保存京东兑换码
    $router->post('/createImage', 'IndexController@createImage');//生成图片
    $router->get('/index/{id}/activityData','IndexController@activityData');
    $router->post('/index/activityDataPost','IndexController@activityDataPost');


    $router->get('winnerList','WinnerController@index');//中奖名单
    $router->get('/winnerList/{id}/editShip', 'WinnerController@editShip');//填写物流单号和发货信息
    $router->post('/winnerList/saveShip', 'WinnerController@saveShip');//保存物流单号
    $router->get('/record', 'RecordController@index');//参与记录
});